/**
 * api文件
 * @Date: 2022-04-08 14:28:53
 * @Version: 1.0.0
 */
import request from '@/lib/request';

/* ********** District ********** */
/**
 * 获取省列表(不包括子级)
 * @tips District
 * @tags [District]
  */
export function api_GET_Provinces () {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_HALL_BASE,
    url: '/api/district/provinces',
    method: 'get'
  });
}
/**
 * 根据省的code查询市列表
 * @tips District
 * @tags [District]
 * @param {string} provinceCode
  */
export function api_GET_CitiesProvinceCode (provinceCode) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_HALL_BASE,
    url: `/api/district/cities/${provinceCode}`,
    method: 'get'
  });
}
/**
 * 根据市的code查询县列表
 * @tips District
 * @tags [District]
 * @param {string} cityCode
  */
export function api_GET_CountiesCityCode (cityCode) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_HALL_BASE,
    url: `/api/district/counties/${cityCode}`,
    method: 'get'
  });
}
/**
 * 查询单个省信息
 * @tips District
 * @tags [District]
 * @param {string} provinceCode
  */
export function api_GET_ProvinceProvinceCode (provinceCode) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_HALL_BASE,
    url: `/api/district/province/${provinceCode}`,
    method: 'get'
  });
}
/**
 * 查询单个市信息
 * @tips District
 * @tags [District]
 * @param {string} cityCode
  */
export function api_GET_CityCityCode (cityCode) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_HALL_BASE,
    url: `/api/district/city/${cityCode}`,
    method: 'get'
  });
}
/**
 * 查询单个县信息
 * @tips District
 * @tags [District]
 * @param {string} countyCode
  */
export function api_GET_CountyCountyCode (countyCode) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_HALL_BASE,
    url: `/api/district/county/${countyCode}`,
    method: 'get'
  });
}
/**
 * 获取地点
 * @tips District
 * @tags [District]
 * @param { object } aDataQuery 参数 [Api_GET_LocationQO]
  */
export function api_GET_Location (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_HALL_BASE,
    url: '/api/district/location',
    method: 'get',
    params: aDataQuery
  });
}
